<?php
namespace modules\resource\controllers;

use controllers\BaseController;
use modules\resource\services\DownloadService;

class DocumentController extends BaseController
{
	//参数检测
	public function getParamRules()
	{
		return [
			'actionDownload'     =>  ['name'],
		];
	}
	public function actionDownload()
	{
		$name   = $this->params['name'];
		
		DownloadService::file($name);
		return [];
	}
}